API Documentation
ProgramManager.h
1 // ProgramManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class ProgramManager final : public nkCommon::SingletonClass<ProgramManager>
14  {
15  public :
16 
21 
22  // Programs
36  Program* get (const nkMemory::StringView& name) ;
45  Program* getByIndex (unsigned int index) ;
52  void rename (const nkMemory::StringView& oldName, const nkMemory::StringView& newName) ;
58  void erase (const nkMemory::StringView& name) ;
59 
60  // Semantics
67  unsigned int getIdForInputSemantics (Program* program) ;
74  void addCustomSemanticIndex (const nkMemory::StringView& semanticName, int assignedIndex) ;
79  int getCustomSemanticIndex (const nkMemory::StringView& semanticName) ;
80  } ;
81 }
nkGraphics::Program
Holds all informations related to GPU programs, and manages their compilation.
Definition: Program.h:12
nkGraphics::ProgramManager::createOrRetrieve
Program * createOrRetrieve(const nkMemory::StringView &name)
nkGraphics::ProgramManager::getByIndex
Program * getByIndex(unsigned int index)
nkGraphics::ProgramManager::~ProgramManager
~ProgramManager()
nkGraphics::ProgramManager::getIdForInputSemantics
unsigned int getIdForInputSemantics(Program *program)
nkGraphics::ProgramManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::ProgramManager
Manages the sahders available in the component.
Definition: ProgramManager.h:14
nkGraphics::ProgramManager::rename
void rename(const nkMemory::StringView &oldName, const nkMemory::StringView &newName)
nkGraphics::ProgramManager::addCustomSemanticIndex
void addCustomSemanticIndex(const nkMemory::StringView &semanticName, int assignedIndex)
nkGraphics::ProgramManager::getCustomSemanticIndex
int getCustomSemanticIndex(const nkMemory::StringView &semanticName)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ProgramManager::get
Program * get(const nkMemory::StringView &name)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7